﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A29 RID: 2601
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveMapRotationRegionScRsp : IMessage<LeaveMapRotationRegionScRsp>, IMessage, IEquatable<LeaveMapRotationRegionScRsp>, IDeepCloneable<LeaveMapRotationRegionScRsp>, IBufferMessage
	{
		// Token: 0x170020D7 RID: 8407
		// (get) Token: 0x06007475 RID: 29813 RVA: 0x0013707B File Offset: 0x0013527B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveMapRotationRegionScRsp> Parser
		{
			get
			{
				return LeaveMapRotationRegionScRsp._parser;
			}
		}

		// Token: 0x170020D8 RID: 8408
		// (get) Token: 0x06007476 RID: 29814 RVA: 0x00137082 File Offset: 0x00135282
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveMapRotationRegionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020D9 RID: 8409
		// (get) Token: 0x06007477 RID: 29815 RVA: 0x00137094 File Offset: 0x00135294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveMapRotationRegionScRsp.Descriptor;
			}
		}

		// Token: 0x06007478 RID: 29816 RVA: 0x0013709B File Offset: 0x0013529B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionScRsp()
		{
		}

		// Token: 0x06007479 RID: 29817 RVA: 0x001370A4 File Offset: 0x001352A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionScRsp(LeaveMapRotationRegionScRsp other) : this()
		{
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.clientPosVersion_ = other.clientPosVersion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600747A RID: 29818 RVA: 0x001370FC File Offset: 0x001352FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionScRsp Clone()
		{
			return new LeaveMapRotationRegionScRsp(this);
		}

		// Token: 0x170020DA RID: 8410
		// (get) Token: 0x0600747B RID: 29819 RVA: 0x00137104 File Offset: 0x00135304
		// (set) Token: 0x0600747C RID: 29820 RVA: 0x0013710C File Offset: 0x0013530C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x170020DB RID: 8411
		// (get) Token: 0x0600747D RID: 29821 RVA: 0x00137115 File Offset: 0x00135315
		// (set) Token: 0x0600747E RID: 29822 RVA: 0x0013711D File Offset: 0x0013531D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170020DC RID: 8412
		// (get) Token: 0x0600747F RID: 29823 RVA: 0x00137126 File Offset: 0x00135326
		// (set) Token: 0x06007480 RID: 29824 RVA: 0x0013712E File Offset: 0x0013532E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClientPosVersion
		{
			get
			{
				return this.clientPosVersion_;
			}
			set
			{
				this.clientPosVersion_ = value;
			}
		}

		// Token: 0x06007481 RID: 29825 RVA: 0x00137137 File Offset: 0x00135337
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveMapRotationRegionScRsp);
		}

		// Token: 0x06007482 RID: 29826 RVA: 0x00137148 File Offset: 0x00135348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveMapRotationRegionScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Motion, other.Motion) && this.Retcode == other.Retcode && this.ClientPosVersion == other.ClientPosVersion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007483 RID: 29827 RVA: 0x001371A8 File Offset: 0x001353A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ClientPosVersion != 0U)
			{
				num ^= this.ClientPosVersion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007484 RID: 29828 RVA: 0x00137216 File Offset: 0x00135416
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007485 RID: 29829 RVA: 0x0013721E File Offset: 0x0013541E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007486 RID: 29830 RVA: 0x00137228 File Offset: 0x00135428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ClientPosVersion != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ClientPosVersion);
			}
			if (this.motion_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Motion);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007487 RID: 29831 RVA: 0x001372A0 File Offset: 0x001354A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ClientPosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClientPosVersion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007488 RID: 29832 RVA: 0x00137310 File Offset: 0x00135510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveMapRotationRegionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ClientPosVersion != 0U)
			{
				this.ClientPosVersion = other.ClientPosVersion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007489 RID: 29833 RVA: 0x0013738C File Offset: 0x0013558C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600748A RID: 29834 RVA: 0x00137398 File Offset: 0x00135598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 74U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.motion_ == null)
						{
							this.Motion = new MotionInfo();
						}
						input.ReadMessage(this.Motion);
					}
				}
				else
				{
					this.ClientPosVersion = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002C71 RID: 11377
		private static readonly MessageParser<LeaveMapRotationRegionScRsp> _parser = new MessageParser<LeaveMapRotationRegionScRsp>(() => new LeaveMapRotationRegionScRsp());

		// Token: 0x04002C72 RID: 11378
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C73 RID: 11379
		public const int MotionFieldNumber = 9;

		// Token: 0x04002C74 RID: 11380
		private MotionInfo motion_;

		// Token: 0x04002C75 RID: 11381
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04002C76 RID: 11382
		private uint retcode_;

		// Token: 0x04002C77 RID: 11383
		public const int ClientPosVersionFieldNumber = 6;

		// Token: 0x04002C78 RID: 11384
		private uint clientPosVersion_;
	}
}
